import request from '../request'

//获取会员
export const getmem = (params: any) => {
    return request({
        url: '/mem',
        method: 'get',
        params
    })
}

//添加会员
export const addmem = (data: any) => {
    return request({
        url: '/mem',
        method: 'post',
        data
    })
}

//修改会员 /会员状态
export const updatemem = (id: any, data: any,) => {
    return request({
        url: `/mem/${id}`,
        method: 'patch',
        data,
    })
}


export const delmem = (id: any) => {
    return request({
        url: `/mem/${id}`,
        method: 'delete',
    })
}
